package com.bdqn.springbootstudy.serviceImpl;

import com.bdqn.springbootstudy.dao.EbookEntryMapper;
import com.bdqn.springbootstudy.pojo.EbookEntry;
import com.bdqn.springbootstudy.service.EbookEntryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("ebookEntryService")
public class EbookEntryServiceImpl implements EbookEntryService {
    @Resource
    private EbookEntryMapper ebookEntryMapper;

    @Override
    public List<EbookEntry> getAllBook() {
        return ebookEntryMapper.getAllBook();
    }
     @Override
    public int add(EbookEntry ebookEntry) {
        return ebookEntryMapper.add(ebookEntry);
    }

    @Override
    public int del(Integer id) {
        return ebookEntryMapper.del(id);
    }

    @Override
    public int upd(EbookEntry ebookEntry) {
        return ebookEntryMapper.upd(ebookEntry);
    }
}
